{% extends "base.html" %}

{% block content %}
<script language=javascript>

function verify(form){
  if(form.name.value==""){
	alert("Enter the name please!");
	form.name.focus();		
       return false;
	}
	 if(form.password.value==""){
	alert("Enter password please");
	form.password.focus();		
       return false;
	}

return true;
 }

</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
<form name='form1' id='form1' action="/checklogin/" method='post' onsubmit='return verify(this);'>
<table width='650' class='grid' cellspacing='1' align='center'><tr><td colspan='2' class='title'>Login</td></tr>
<tr valign='middle' align='left'></tr>

<tr valign='middle' align='left'><td class='odd' width='25%'><font color="red">*</font>Name:</td>
<td class='even'><input type="text" name="name" value="{{name}}" /></td></tr>

<tr valign='middle' align='left'><td class='odd' width='25%'><font color="red">*</font>password:</td>
<td class='even'><input type="password" name="password" /></td></tr>
{% if flashmsg %}
<tr valign='middle' align='left'><td class='odd' colspan=2" width='100%' align="center" style="color:red">{{flashmsg}}</td>
</tr>
{% endif %}
<tr valign='middle' align='left'><td class='odd' width='25%'></td>
<td class='even'>&nbsp;<input type='submit' class='button' name='submit'  id='submit' value=' Submit '  />&nbsp;&nbsp;</form></td></tr>

</table>



{% endblock %}